<fieldset>
	<legend>发表说说</legend>
	<form class="form-horizontal" method="post">
	<table class="table table-form">
		<tbody>
			<tr>
				<th>说说内容</th>
				<td>
					<script type="text/javascript" charset="utf-8">
						window.UEDITOR_HOME_URL = "/static/ueditor/";
					</script>
					<script type="text/javascript" src="/static/ueditor/ueditor.config.js"></script>
					<script type="text/javascript" src="/static/ueditor/ueditor.all.min.js"></script>
					<script type="text/plain" id="content" name="content"></script>
					<script type="text/plain" id="upload_ue"></script>
					<script type="text/javascript" charset="utf-8">
						var optionsEditor = {"fileUrl":"/admin/article/upload?type=3","filePath":"","imageUrl":"/admin/article/upload?type=1","imagePath":"","initialFrameWidth":"90%","initialFrameHeight":"400"};
						var optionsUP = {"imageUrl":"/admin/article/upload?type=2&w=180&h=135","imagePath":""};
						//文章内容编辑器
						var ue = UE.getEditor("content", optionsEditor);
						//上传标题图片
        				var _editor = UE.getEditor("upload_ue",optionsUP);
        				_editor.ready(function () {
				            _editor.setDisabled();
				            _editor.hide();
				            _editor.addListener('beforeInsertImage', function (t, arg) {     //侦听图片上传
				                $("#picture").attr("value", arg[0].src);                      //将地址赋值给相应的input
				                $("#preview").attr("src", arg[0].src);
				            })
				            _editor.addListener('afterUpfile', function (t, arg) {
				                $("#file").attr("value", _editor.options.filePath + arg[0].url);
				            })
			        	});
					</script>
				</td>
			</tr>
		</tbody>
		<tfoot>
		<tr>
			<td></td>
			<td><button type="submit" class="btn"><i class="icon-ok"></i> 提交</button>
				<button type="button" class="btn" onclick="javascript:history.back();">取消</button></td>
		</tr>
		</tfoot>
	</table>
	</form>
</fieldset>